home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / aspisrc.zip / MAKEFILE.MSC < prev    next >
Text File  |  1992-01-26  |  2KB  |  87 lines

  1. # chris@alderan.sdata.de
  2. # Makefile for GNU tar program for Microsoft's make
  3. # if you don't want the aspi functions just remove the -DASPI from the
  4. # DEFS line and the aspi.c and aspi.obj from LOCAL_SRC & LOCAL_OBJ
  5. CC = cl
  6. MODEL = M
  7. DEFS = -nologo -DNONAMES -D__MSDOS__ -A$(MODEL) -DNO_REMOTE -DASPI
  8. LIBS = $(MODEL)dir.lib
  9. LINT = $(CC)
  10. LINTFLAGS = -W3
  11. DEF_AR_FILE = \"tar.out\"
  12. # for the next line see the file ASPI.DOC
  13. DEFAULT_TAPE_ID = \"0:4:0\"
  14. DEFBLOCKING = 20
  15. CFLAGS = $(COPTS) $(ALLDEFS)
  16. ALLDEFS = $(DEFS) \
  17.     -DDEF_AR_FILE=$(DEF_AR_FILE) \
  18.     -DDEFBLOCKING=$(DEFBLOCKING)
  19. COPTS = -Ox -G2s
  20. OBJ1 =  tar.obj create.obj extract.obj buffer.obj getoldop.obj list.obj update.obj
  21. OBJ2 =  version.obj names.obj diffarch.obj port.obj wildmat.obj getopt.obj getopt1.obj regex.obj
  22. OBJ3 =  gnu.obj mangle.obj getdate.obj aspi.obj msd_dir.obj
  23. OBJS =    $(OBJ1) $(OBJ2) $(OBJ3)
  24.  
  25. .c.obj:
  26.         $(CC) $(CFLAGS) -c $*.c
  27.  
  28. tar.obj: tar.c regex.h tar.h port.h
  29.  
  30. create.obj: create.c tar.h port.h
  31.  
  32. extract.obj: extract.c tar.h port.h
  33.  
  34. buffer.obj: buffer.c rmt.h  tar.h port.h
  35.  
  36. getoldop.obj: getoldop.c tar.h port.h
  37.  
  38. list.obj: list.c tar.h port.h
  39.  
  40. update.obj: update.c tar.h port.h
  41.  
  42. version.obj: version.c tar.h port.h
  43.  
  44. names.obj: names.c tar.h port.h
  45.  
  46. diffarch.obj: diffarch.c tar.h port.h
  47.  
  48. port.obj: port.c tar.h port.h
  49.  
  50. wildmat.obj: wildmat.c tar.h port.h
  51.  
  52. getopt.obj: getopt.c tar.h port.h
  53.  
  54. getopt1.obj: getopt1.c tar.h port.h
  55.  
  56. regex.obj: regex.c tar.h regex.h
  57.  
  58. gnu.obj: gnu.c tar.h port.h
  59.  
  60. mangle.obj: mangle.c tar.h port.h
  61.  
  62. getdate.obj: getdate.c tar.h port.h
  63.  
  64. msd_dir.obj: msd_dir.c tar.h port.h
  65.  
  66. aspi.obj: aspi.c scsierr.h scsi.h aspi.h
  67.     $(CC) -nologo $(COPTS) -A$(MODEL) -DTAPE_ID=$(DEFAULT_TAPE_ID) \
  68.     -c aspi.c
  69.  
  70. scsi.obj: aspi.c scsierr.h scsi.h aspi.h
  71.     $(CC) -nologo $(COPTS) -A$(MODEL) -DTAPE_ID=$(DEFAULT_TAPE_ID) \
  72.     -DCTCTRL /Foscsi.obj -c aspi.c
  73.  
  74. ctctrl.obj: ctctrl.c scsi.h scsierr.h aspi.h
  75.  
  76. ctctrl.exe: getopt.obj ctctrl.obj scsi.obj
  77.         $(CC) $(COPTS) $(LDFLAGS) -o ctctrl getopt.obj ctctrl.obj scsi.obj
  78.  
  79. tar.exe: $(OBJS)
  80.         echo $(OBJ1) + >linkcmd
  81.         echo $(OBJ2) + >> linkcmd
  82.         echo $(OBJ3) >> linkcmd
  83.         link @linkcmd, $@,,,, /NOI
  84.  
  85. all: tar.exe ctctrl.exe
  86.  
  87.